package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.ShareDetailDao;
import com.codi.bus.core.domain.ShareDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("shareDetailDao")
public class ShareDetailDaoImpl extends GeneratedBaseDaoImpl<ShareDetail> implements ShareDetailDao{
    @Override
    public ShareDetail selectByTaSerialId(String taSerialId) {

        return this.getObject(this.generateStatement("selectByTaSerialId"),taSerialId);
    }

    @Override
    public List<ShareDetail> selectAllByAffirmDate(String affirmDate) {
        return this.findList(this.generateStatement("selectAllByAffirmDate"),affirmDate);
    }

    @Override
    public List<ShareDetail> selectAll() {
        return this.findList(this.generateStatement("selectAll"),"");
    }
}
